package com.main.modulemysql.service.impl;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.main.modulemysql.entity.Facilities;
import com.main.modulemysql.mapper.FacilitiesMapper;
import com.main.modulemysql.service.IFacilitiesService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author IceZhang
 * @since 2018-08-07
 */
@Service
public class FacilitiesServiceImpl extends ServiceImpl<FacilitiesMapper, Facilities> implements IFacilitiesService {

    @Override
    public Page<Facilities> selectFacilitiesPage(Integer current,Integer size) {

        Page<Facilities>page=new Page<>(current,size);
        EntityWrapper entityWrapper=new EntityWrapper();
        Page<Facilities>facilitiesPage= selectPage(page,entityWrapper);
        return facilitiesPage;
    }
}
